package com.cxq.thread;

import java.util.Date;

/**
 * Created by cxq on 2020/7/25.
 */
public class MyRunnable implements Runnable {
    public void run() {
        for(int i=0;i<10;i++){
            System.out.println(Thread.currentThread()+"执行了---"+new Date());
            try {
                Thread.sleep(3000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
